package com.ruoyi.community.service.impl;

import java.util.List;

import com.ruoyi.community.domain.PoliceList;
import com.ruoyi.community.mapper.PoliceListMapper;
import com.ruoyi.community.service.IPoliceListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 查询Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-25
 */
@Service
public class PoliceListServiceImpl implements IPoliceListService
{
    @Autowired
    private PoliceListMapper policeListMapper;

    /**
     * 查询查询
     * 
     * @param policeId 查询ID
     * @return 查询
     */
    @Override
    public PoliceList selectPoliceListById(Long policeId)
    {
        return policeListMapper.selectPoliceListById(policeId);
    }

    /**
     * 查询查询列表
     * 
     * @param policeList 查询
     * @return 查询
     */
    @Override
    public List<PoliceList> selectPoliceListList(PoliceList policeList)
    {
        return policeListMapper.selectPoliceListList(policeList);
    }

    /**
     * 新增查询
     * 
     * @param policeList 查询
     * @return 结果
     */
    @Override
    public int insertPoliceList(PoliceList policeList)
    {
        return policeListMapper.insertPoliceList(policeList);
    }

    /**
     * 修改查询
     * 
     * @param policeList 查询
     * @return 结果
     */
    @Override
    public int updatePoliceList(PoliceList policeList)
    {
        return policeListMapper.updatePoliceList(policeList);
    }

    /**
     * 批量删除查询
     * 
     * @param policeIds 需要删除的查询ID
     * @return 结果
     */
    @Override
    public int deletePoliceListByIds(Long[] policeIds)
    {
        return policeListMapper.deletePoliceListByIds(policeIds);
    }

    /**
     * 删除查询信息
     * 
     * @param policeId 查询ID
     * @return 结果
     */
    @Override
    public int deletePoliceListById(Long policeId)
    {
        return policeListMapper.deletePoliceListById(policeId);
    }
}
